package com.dayuanit.booksystem.v4.entity;

public class Book {
    private long id;
    private String bookName;
    private String author;
    private String price;
    private long publisherId;

    public Book() {
        System.out.println("Book()");
    }

    static {
        System.out.println("static { }");
    }

    public Book(long id, String bookName, String author, String price, long publisherId) {
        this.id = id;
        this.bookName = bookName;
        this.author = author;
        this.price = price;
        this.publisherId = publisherId;
    }


    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", price='" + price + '\'' +
                ", publisherId=" + publisherId +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    //setBookName(String)
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public long getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(long publisherId) {
        this.publisherId = publisherId;
    }
}
